use crate::models::{Role, User};

pub fn get_users() -> Vec<User> {
    vec![
        User {
            username: "root".to_string(),
            password: "root".to_string(),
            role: Role::Admin,
        },
        User {
            username: "zhangsan".to_string(),
            password: "000000".to_string(),
            role: Role::Normal,
        },
        User {
            username: "lisi".to_string(),
            password: "000000".to_string(),
            role: Role::Normal,
        },
        User{
            username: "wnagwu".to_string(),
            password: "000000".to_string(),
            role: Role::Normal,
        }
    ]
}

#[cfg(test)]
mod tests {
    use crate::users::get_users;

    #[test]
    fn test_get_users() {
        let vec = get_users();
        println!("{:?}", vec);
    }
}